<template>
    <van-nav-bar fixed :title="title" 
    :left-arrow="showBack" @click-left="$router.back()"/>
</template>

<script>
export default {
    name: "navbar",
    props: {
        title: {
            type: String,
            default: ''
        },
        showBack: {
            type: Boolean,
            default: true
        }
    },
    data() {
        return {}
    }
}
</script>

<style lang="less" scoped></style>